//简单生产领料单
import request from "@/utils/request";

//获取简单生产领料数据
export const reqProductMaterialRequestList = (parameter) => {
    return request({
        url:"/api/stocks/list",
        method:"get",
        params:{
            inOrOutType:'materialRequisition',
            ...parameter
        }
    })
}

//查询仓库信息接口
export function reqWareHouseInfo () {
    return request ({
        url:"/api/stocks/warehouseList1",
        method:"get"
    })
}

//更新某生产入库单(创建状态->生效 生效->完成)
export function reqUpdateProductionMaterial (parameter) {
    return request({
        url:"/api/stocks/updateStock1",
        method:"put",
        data:{
            inOrOutType:"materialRequisition",
            orderNumber:parameter.orderNumber,
            state:parameter.state
        }
    })
}